package org.tloss.web.editor.model.command;

import java.util.List;

import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlTransient;

@XmlSeeAlso({ SimpleCommand.class, ComplexCommand.class })
public abstract class Command {
	public abstract List<Command> getChildren();

	public abstract String getLabel();

	private Command parent;

	@XmlTransient
	public Command getParent() {
		return parent;
	}

	public void setParent(Command parent) {
		this.parent = parent;
	}

	public String toString() {
		return getLabel();
	}
}
